package com.kunya.product.dao.product;

import com.kunya.product.po.ProductParameter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductParameterMapper {
    int deleteByPrimaryKey(@Param("productParameterId") Long productParameterId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record") ProductParameter record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record") ProductParameter record,@Param("table_prefix") String table_prefix);

    ProductParameter selectByPrimaryKey(@Param("productParameterId") Long productParameterId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record") ProductParameter record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record") ProductParameter record,@Param("table_prefix") String table_prefix);
    //根据商品id查询商品参数列表
    List<ProductParameter> selectProductParametersByProductId(@Param("productId") Long productId,@Param("table_prefix") String table_prefix);

    int deleteProductParameterByProductId(@Param("productId") Long productId,@Param("table_prefix") String tablePrefix);
}